package com.sqx.modules.search.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 搜索记录(SearchRecord)实体类
 *
 * @author makejava
 * @since 2024-05-28 09:33:01
 */
@Data
public class SearchRecord implements Serializable {
    private static final long serialVersionUID = 100611440451948704L;

    @TableId(type = IdType.INPUT)
    private String id;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 搜索内容
     */
    private String searchContent;
    /**
     * 搜索次数
     */
    private Integer searchCount;
    /**
     * 搜索时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime searchTime;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

}

